<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Vue.js 私有组件</title>
        
        <script src="../../../js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <my-component></my-component>
        </div>
        
        <script>
            new Vue({
                el: '#app',
                components: {
                    'my-component': {
                        template: '<h1>这是一个私有组件</h1>'
                    }
                }
            });
        </script>
    </body>
</html>